<%@ tag pageEncoding="UTF-8" %>
<%@ include file="inc/taglibs.jsp" %>
<%@ tag import="org.apache.commons.beanutils.BeanUtils" %>	
<%@ tag import="com.pearlsoft.util.StringUtils" %>

<%-- 通用属性  --%>
<%@ attribute rtexprvalue="true" required="false" name="var"%>
<%@ attribute rtexprvalue="true" required="false" name="id"%>
<%@ attribute rtexprvalue="true" required="false" name="config" 
	description="如果为true，只输出配置项，如果为false，输出内容如new cmpclass(config)，默认为false"%>
<%@ attribute rtexprvalue="true" required="false" name="renderTo"%>
<%@ attribute rtexprvalue="true" required="true" name="handler" description="点击查询时的回调函数,参数:查询框内的值"  %>
<%@ attribute rtexprvalue="true" required="true" name="scope"%>
<plsc:component name="Pearlsen.ux.QuickSearch" var="${var}"  >
	<jsp:doBody/>
	<plsc:attr name="id" test="${!empty(id)}">${id}</plsc:attr>
	<plsc:attr name="xtype" test="${config == true}">quicksearch</plsc:attr>
	<plsc:attr name="renderTo" test='<%=StringUtils.isNotEmpty(renderTo)%>'
		type='<%= StringUtils.getRenderType(renderTo)%>'>${renderTo}</plsc:attr>
	<plsc:attr name="scope" test="${!empty(scope)}" type="direct" >${scope}</plsc:attr>		
	<plsc:attr name="handler" test="${!empty(handler)}" type="direct" >${handler}</plsc:attr>
	
</plsc:component>